package com.scau.service;

import java.util.List;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.scau.pojo.Homework;

public interface HomeworkService {
	//查找所有作业
	public List<Homework> queryAllHomework();
	//根据seId查找作业
	public List<Homework> getHomeworkBySeId(int seId);
	//添加作业
	public int add(JSONObject jsonObject);
	//删除一或多个作业
	public int delete(JSONArray jsonArray);
	//更新教师信息
	public int update(JSONObject jsonObject);
	//获取作业个数
	public int getHomeworkCount(int seId);
	
	//作业名称是否已存在
	public int isNameExist(String hName,Integer seId);
}
